var a = require("../export.js");

getApp();

Page({
    data: {
        options: {}
    },
    onLoad: function(a) {
        this.setData({
            options: a
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    goMyCar: function() {
        wx.navigateTo({
            url: "/pages/car/my-car/my-car"
        });
    },
    goBespeakHelp: function() {
        var e = this.data.options;
        a.requestUtil.post(a._DuoguanData.duoguan_host_api_url + "/index.php/addon/DuoguanCar/Api/getHelpSta.html", e, function(a) {
            0 == a.status ? wx.navigateTo({
                url: "/pages/car/helping/helping"
            }) : wx.navigateTo({
                url: "/pages/car/bespeak-help/bespeak-help"
            });
        });
    },
    goBespeakMt: function() {
        wx.navigateTo({
            url: "/pages/car/bespeak-maintenance/bespeak-maintenance"
        });
    },
    goBespeakRepair: function() {
        wx.navigateTo({
            url: "/pages/car/bespeak-repair/bespeak-repair"
        });
    }
});